package com.dailyblue.javaee.filter;

import jakarta.servlet.*;
import jakarta.servlet.annotation.WebFilter;

import java.io.IOException;

@WebFilter("/*")
public class SecondFilter extends GenericFilter {
    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
        System.out.println("SecondFilter进行触发了");
        filterChain.doFilter(servletRequest,servletResponse);
        System.out.println("我SecondFilter又来了");
    }
}